package com.joinval.modules.joinval.dto;

import lombok.Data;

/**
 * 从session当中通过这个方法全名获取对应的请求dto
 *
 * @author shen shuai
 * @create 2024-09-29 上午 10:10
 */

@Data
public class RequestLimitDTO {

    private Integer requestCount;

    private Long lastRequestTime;

    public synchronized void increaseCount() {
        requestCount++;
    }

    public synchronized void setRequestCount(Integer requestCount) {
        this.requestCount = requestCount;
    }
}
